//
//  CXNetworkTool.h
//  yichangxing
//
//  Created by 小宇 on 2017/7/15.
//  Copyright © 2017年 cxkj. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CXNetworkTool : NSObject
+(instancetype)sharedTool;

//通用的方法
-(void)postRequestWithURL:(NSString *)urlString parameters:(NSDictionary *)params complete:(void(^)(id responseObject, NSError *error))completeBlock;

-(void)getRequestWithURL:(NSString *)urlString parameters:(NSDictionary *)params complete:(void(^)(id responseObject, NSError *error))completeBlock;
//-(void)postRequestWithURLApplication:(NSString *)urlString parameters:(NSDictionary *)params complete:(void(^)(id responseObject, NSError *error))completeBlock;
//
//-(void)getRequestWithURLApplication:(NSString *)urlString parameters:(NSDictionary *)params complete:(void(^)(id responseObject, NSError *error))completeBlock;
//
//-(void)postRequestWithPhoto:(NSString *)urlString :(NSData *)data parameters:(NSDictionary *)params complete:(void(^)(id responseObject, NSError *error))completeBlock;
//
////为了解决即有上拉刷新又有中间的小汽车重新写一个没有转中间小车的方法
//-(void)postRequestWithURLREFRESH:(NSString *)urlString parameters:(NSDictionary *)params complete:(void (^)(id, NSError *))completeBlock;
@end
